//在react脚手架里，通过这个文件来配置webpack
const {override, fixBabelImports, addLessLoader,addDecoratorsLegacy} = require('customize-cra')
module.exports = override(
	fixBabelImports("import", {
		libraryName: "antd",
		libraryDirectory: "es",
		style: true
	}),
	//antd主题颜色配置
	addLessLoader({
		lessOptions: {
			javascriptEnabled: true,
			modifyVars: {'@primary-color':'#3CB371'}
		}
	}),
	addDecoratorsLegacy()
)
